<script type="text/ecmascript-6">
  import Navbar from '../../components/base/navbar.vue';

//  import { Navbar } from 'vmc';
//
//  import { queryChutGoods } from '../../datas/actions/chub';
//  import { getChutGoods } from '../../datas/getters/chub';

  export default {
    components: {
      Navbar

    },
    methods: {
      jump_store( id) {
          window.location.href="http://m.dev.tnf.ibrand.cc/#!/store/detail/"+id;
//        this.$router.forward({ name: 'store-detail', params:{id: id} });
      }
    },
    mounted() {
        this.$store.dispatch('queryChutGoods',this.$route.params.id);
//      this.queryChutGoods(this.$route.params.id);
    },
//    activated(){
//      this.$store.dispatch('queryChutGoods',this.$route.params.id);
//    },
    computed:{
        chubGoods:{
            get(){
                return this.$store.getters.getChutGoods
            }
        }
    }
  }
</script>
